SOURCES = $(wildcard *.cpp)
OBJS=$(SOURCES:.cpp=.o)

CC=g++
FLAGS=-g -Wall
INCLUDES=-I. -I ../core
TARGET=UnitTest
LIBS=-L ../core -lcore -L /usr/local/lib -lcppunit -ldl 

$(TARGET):$(OBJS)
	$(CC) $(INCLUDES) $(FLAGS) -o $@ $^ $(LIBS)

%.o:%.cpp
	$(CC) $(FLAGS) $(INCLUDES) -c $< -o $@

.PHONY:clean
clean:
	rm -rf $(OBJS) $(TARGET)

